#include <stdio.h>
#include <strings.h>
void printfS(char *s,char *name){
    printf("name=%s\n",name);
    for (int i=0;i<7;i++){
        printf("s[%d]=%c,s[%d]=%d\n",i,s[i],i,s[i]);
    }

}

void main(void){
    char *s="abcdef"; // 字符串，以\0结尾，长度为7
    char s1[]="abcdef";// 字符串以\0结尾，长度为7
    char s2[6]="abcdef";//字符数组，长度为6
    char s3[6]={'a','b','c','d','e','f'};//字符数组，长度为6
    char s4[6]={"abcdef"};//字符数组，长度为6
    printfS(s,"s");
    printfS(s1,"s1");
    printfS(s2,"s2");
    printfS(s3,"s3");
    printfS(s4,"s4");


}